package com.sluggard.ai.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 类描述：
 *
 * @author lizheng
 * @created 2025/4/23 10:11
 */
@Data
@ConfigurationProperties(prefix = "milvus.client")
public class MilvusProperties {

    private String knowledgeBaseKey = "knowledge_";
    private String protocol = "http";
    private String host = "localhost";
    private Integer port = 19530;
    private String username = "root";
    private String password = "milvus";
    private String collectionName = "milvus";
    private String databaseName =  "milvus";
    private Integer dimension = 1024;


    public String getUrl() {
        return protocol + "://" + host + ":" + port;
    }
}
